fix(release): wrap goreleaser before-hooks in sh -c#133
Merged
Conversation
The v1.0.0 release run (workflow #25778329702) failed at the very
first hook with:
error=exec: "cd": executable file not found in $PATH
cmd=cd
Root cause: goreleaser's `before.hooks` runs each entry via Go's
exec.Command — no shell interpretation. `cd go && go mod download`
gets parsed as binary="cd", args=["go", " && ", "go", "mod", "download"],
and exec can't find a `cd` binary.
Fix: wrap each hook in `sh -c "…"` so the working-directory change
and `&&` chain run inside a real shell.
After this lands, retag v1.0.0 to re-fire the release workflow.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
aksOps
added a commit
that referenced
this pull request
May 13, 2026
The v1.0.0 release flow burned (goreleaser before-hook bug, fixed in #133 but the tag itself was already pushed pointing at a commit that can't build). Rather than force-update v1.0.0, ship v0.3.0 cleanly from the fix commit and treat v1.0.0 as a one-off SemVer hole. Renames v1.0.0 → v0.3.0 in CHANGELOG.md, CLAUDE.md, PROJECT_SUMMARY.md. The "v1.1.0 removal target" for the deprecated 34 MCP tools becomes "a future minor" — pinning the removal version isn't worth the churn given we're not yet at 1.x. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The v1.0.0 release workflow (run #25778329702) failed immediately at the first goreleaser before-hook:
```
error=exec: "cd": executable file not found in $PATH
cmd=cd
```
goreleaser runs each `before.hooks` entry via Go's `exec.Command` — no shell interpretation. `cd go && go mod download` becomes `binary=cd, args=[go, &&, go, mod, download]`, and exec can't find a `cd` binary.
Fix: wrap each hook in `sh -c "…"` so the working-directory change + `&&` chain run in a real shell.
After merge, retag v1.0.0 to re-fire the release.
Test plan
git push --delete origin v1.0.0), re-tag from new HEAD, push tag — workflow should make it past the hooks